﻿using Comain;
using Comain.Orders;
using Comain.RBAC;
using Microsoft.EntityFrameworkCore;

namespace IRepository
{
    public class MyContext:DbContext
    {
        public MyContext(DbContextOptions<MyContext> options) : base(options) { }
        /// <summary>
        /// 商品品牌编号
        /// </summary>
        public DbSet<Goods> Goods { get; set; }
        /// <summary>
        /// 商品分类id
        /// </summary>
        public DbSet<T_GoodsType> GoodsTypes { get; set; }
        /// <summary>
        /// 商品信息表
        /// </summary>
        public DbSet<T_Goods> Goodss {  get; set; }

        //角色
        public DbSet<T_Member> Members { get; set; }
        public DbSet<T_MemberLevel> MemberLevels { get; set; }
        public DbSet<T_MemberRole> MemberRoles { get; set; }
        public DbSet<T_Role> Roles { get; set; }
        public DbSet<T_Permission> Permissions { get; set; }
        public DbSet<T_RolePermission> RolePermissions { get; set; }


        //订单
        public DbSet<T_Order> T_Orders { get; set; }
    }
}
